<?php include 'header.php'; ?>

<!-- members box -->
<div id="member_box" style="text-align:left;">
	<div><h3>教师：</h3>
		<?php
		foreach ($this->teacher as $d) {
			echo "<a href='javascript:pick_member(".
				"{$d['AId']}, \"{$d['Name']}\");'>{$d['Name']}</a>\n";
		}
		?>
		<div class="clear"></div>
	</div>

	<div><h3>在读博士：</h3>
		<?php
		foreach ($this->phd as $d) {
			echo "<a href='javascript:pick_member(".
				"{$d['AId']}, \"{$d['Name']}\");'>{$d['Name']}</a>\n";
		}
		?>
		<div class="clear"></div>
	</div>
	<div><h3>在读硕士：</h3>
		<?php
		foreach ($this->master as $d) {
			echo "<a href='javascript:pick_member(".
				"{$d['AId']}, \"{$d['Name']}\");'>{$d['Name']}</a>\n";
		}
		?>
		<div class="clear"></div>
	</div>

	<div class="clear"></div>
</div> <!-- end of members box -->

<h1>分配、解除管理权限</h1>
<?php $admin = array();
	include 'static/admin.php'; 
?>
<div style="text-align:left">
<form action="/admin/update" method="post">
	管理网站：<input type="text" name="member" id="paper_author"
				value="<?php
						foreach ($admin as $id => $name)
							echo "$name(id=$id)、";
						?>"
				style="width:450px;" />
	<br />以上成员可以修改网站静态内容。
	<br />后台管理页面入口： /home/admin
	<br /><br /><input type="submit" />
</form>
</div>

<?php include 'footer.php'; ?>
